<?php
/**
 * Created by PhpStorm.
 * User: win7
 * Date: 2018/5/11 0011
 * Time: 16:29
 */

namespace Wx\Controller;
use Think\Controller;

class AdventController extends Controller{
	
	// 支付成功后的广告页
    public function index(){
        // 查询试吃试用商品
        $foretaste = M("foretaste_goods")->where('state = 1')->order('starttime ASC,addtime DESC')->limit(6)->select();
        $this->assign("foretaste",$foretaste);
        $this->display('advent');
    }//end function
}//end class